<template>
  <div class="hospital-home-container">
    <div class="welcome-section">
      <h1>欢迎使用医疗报销系统 - 医院端</h1>
      <p>请从左侧菜单选择您需要的功能</p>
    </div>
    
    <div class="quick-access">
      <h2>快速访问</h2>
      <div class="card-container">
        <div class="card" @click="navigateTo('/hospital/registration')">
          <div class="card-icon">🏥</div>
          <div class="card-title">入院登记</div>
        </div>
        
        <div class="card" @click="navigateTo('/hospital/patient-selection')">
          <div class="card-icon">👨‍⚕️</div>
          <div class="card-title">患者诊断</div>
        </div>
        
        <div class="card" @click="navigateTo('/hospital/patient-selection-order')">
          <div class="card-icon">💊</div>
          <div class="card-title">患者医嘱</div>
        </div>
        
        <div class="card" @click="navigateTo('/hospital/drug-prescription')">
          <div class="card-icon">📋</div>
          <div class="card-title">药品处方医嘱</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const navigateTo = (path) => {
  router.push(path)
}
</script>

<style scoped>
.hospital-home-container {
  padding: 20px;
}

.welcome-section {
  background-color: #fff;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  text-align: center;
}

.welcome-section h1 {
  font-size: 24px;
  color: #303133;
  margin-bottom: 10px;
}

.welcome-section p {
  font-size: 16px;
  color: #606266;
}

.quick-access {
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.quick-access h2 {
  font-size: 18px;
  color: #303133;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EBEEF5;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  width: calc(25% - 15px);
  min-width: 200px;
  background-color: #F5F7FA;
  border-radius: 4px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
  background-color: #ECF5FF;
}

.card-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 16px;
  color: #303133;
}

@media (max-width: 768px) {
  .card {
    width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .card {
    width: 100%;
  }
}
</style> 